﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VBoxServiceMonitor
{
    public class PowerMode : Object
    {
        int _Mode;
        public int Mode { get { return _Mode; } }

        string _ModeTitle;
        public string ModeTitle { get { return _ModeTitle; } }

        public PowerMode(int iMode)
        {
            _ModeTitle = String.Empty;
            _Mode = 0;

            setMode(iMode);
        }

        public override string ToString()
        {
            return ModeTitle;
        }

        private void setMode(int iMode)
        {
            _Mode = iMode;

            switch (Mode)
            {
                case 0:
                    _ModeTitle = Strings.T_Status_Off;
                    break;
                case 1:
                    _ModeTitle = Strings.T_Status_Saved;
                    break;
                case 2:
                    _ModeTitle = Strings.T_Pause_Resume;
                    break;
                case 6:
                    _ModeTitle = Strings.T_Status_Running;
                    break;
                default:
                    break;
            }
        }
    }
}
